package com.power.sifa.info.api;

import com.plf.common.domain.ResponseDTO;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.multipart.MultipartFile;
import com.power.sifa.info.model.Law_keyword;
import com.power.sifa.info.model.pageInfo.Law_keywordPageInfo;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

/**
 *  法律关键词 Feign
 */
public interface ILaw_keywordFeign {

    /**
     * 法律关键词分页列表
     */
    @PostMapping("/law_keyword/list")
    ResponseDTO list(@RequestBody Law_keywordPageInfo law_keywordPageInfo);

    /**
    * 查看法律关键词
    */
    @GetMapping("/law_keyword/view")
    ResponseDTO view(@RequestParam("id") Integer id);

    /**
    * 删除法律关键词
    */
    @PostMapping("/law_keyword/delete")
    ResponseDTO delete(@RequestParam("id") Integer id);

    ///**
    // * 查看法律关键词 复合主键使用
    // */
    //@PostMapping("/law_keyword/viewByPK")
    //ResponseDTO viewByPK(@RequestBody Law_keyword.Law_keywordPK pk);

    /**
     * 修改或保存法律关键词
     */
    @PostMapping("/law_keyword/save")
    ResponseDTO save(@RequestBody Law_keyword  law_keyword);

    ///**
    // * 删除法律关键词 复合主键使用
    // */
    //@PostMapping("/law_keyword/deleteByPK")
    //ResponseDTO deleteByPK(@RequestBody Law_keyword.Law_keywordPK pk);
    
    /**
     * 批量删除法律关键词
     */
    @PostMapping("/law_keyword/batchDel")
    ResponseDTO batchDel(@RequestParam("ids") String ids);
    
     /**
     * 导出excel
     */
    @PostMapping("/law_keyword/output")
    void output(HttpServletResponse response, @RequestBody Law_keywordPageInfo law_keywordPageInfo);
        
     /**
     * 导出excel模板
     */
    @PostMapping("/law_keyword/exportExcelTemplate")
    void exportExcelTemplate(HttpServletResponse response);
    
     /**
     *	导入excel
     */
    @PostMapping("/law_keyword/importExcel")
    ResponseDTO importExcel(@RequestBody MultipartFile file) throws IOException ;
    
}
